# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=xmlindent
pkgver=0.2.17
pkgrel=0
pkgdesc="An XML indenting utility"
url="http://xmlindent.sourceforge.net/"
arch="all"
license="GPL"
depends=""
makedepends="flex-dev"
install=""
subpackages="$pkgname-doc"
source="https://sourceforge.net/projects/xmlindent/files/xmlindent/$pkgver/xmlindent-$pkgver.tar.gz"

_builddir="$srcdir"/xmlindent-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	make PREFIX="$pkgdir"/usr install || return 1
}

sha512sums="ab4b46dbd68f29e7adba6283485eb9d1c614ece640c18e1eabbe7f0e1e6f27f14d00d694e4e1981aaf66e0ddcf208c6cb2c80dda1cbeb0ceb1a40987a419f716  xmlindent-0.2.17.tar.gz"
